package com.xwn.customer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * 消费者启动类
 * @author  duandw
 */
@SpringBootApplication
@ImportResource(locations={"classpath:kaptcha-config.xml","classpath:spring-dubbo.xml"})
@EnableSwagger2
@EnableScheduling
@EnableAutoConfiguration(exclude = DataSourceAutoConfiguration.class)
public class CustomerApplication {

	public static void main(String[] args) {
		System.setProperty("spring.devtools.restart.enabled", "false");
		SpringApplication.run(CustomerApplication.class, args);
	}

}
